package com.jike.mahjong;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.web.context.ContextLoaderListener;

import com.geek.game.manager.agent.base.DateTimeUtil;
import com.geek.game.manager.agent.model.ConsumerRecord;
import com.geek.game.manager.agent.model.Products;
import com.geek.game.manager.agent.model.Week;
import com.geek.game.manager.agent.service.ConsumerService;

import ydh.cicada.dao.JdbcDao;
import ydh.cicada.dao.Page;

public class App {
	
	public static void main(String[] args) {
		ApplicationContext context=new ClassPathXmlApplicationContext(new String[]{"classpath:/spring/application-dao.xml","classpath:/spring/application-transaction.xml"});
    	org.springframework.web.context.ContextLoaderListener listener=new ContextLoaderListener();
        JdbcDao dao=context.getBean(JdbcDao.class);
        ConsumerService service=context.getBean(ConsumerService.class);
        Map map=new HashMap<String,Object>();
        map.put("offset", 1);
        map.put("limit", 5);
        Page page=service.getManagerTable(map);
        System.err.println(page.getPageSize());
        
	}
}
